Fredkin Gate
   HOME

TheInfoList



OR:

The Fredkin gate (also CSWAP gate and conservative logic gate) is a computational circuit suitable for
reversible computing Reversible computing is any model of computation where the computational process, to some extent, is time-reversible. In a model of computation that uses deterministic transitions from one state of the abstract machine to another, a necessary co ...
, invented by
Edward Fredkin Edward Fredkin (born October 2, 1934) is a distinguished career professor at Carnegie Mellon University (CMU), and an early pioneer of digital physics. Fredkin's primary contributions include work on reversible computing and cellular automata. ...
. It is ''universal'', which means that any logical or arithmetic operation can be constructed entirely of Fredkin gates. The Fredkin gate is a circuit or device with three inputs and three outputs that transmits the first bit unchanged and swaps the last two bits if, and only if, the first bit is 1.


Definition

The basic Fredkin gate is a controlled swap gate that
maps A map is a symbolic depiction emphasizing relationships between elements of some space, such as objects, regions, or themes. Many maps are static, fixed to paper or some other durable medium, while others are dynamic or interactive. Although ...
three inputs onto three outputs . The ''C'' input is mapped directly to the ''C'' output. If ''C'' = 0, no swap is performed; maps to , and maps to . Otherwise, the two outputs are swapped so that maps to , and maps to . It is easy to see that this circuit is reversible, i.e., "undoes" itself when run backwards. A generalized ''n''×''n'' Fredkin gate passes its first ''n''−2 inputs unchanged to the corresponding outputs, and swaps its last two outputs if and only if the first ''n''−2 inputs are all 1. The Fredkin gate is the reversible three-bit gate that swaps the last two bits if, and only if, the first bit is 1. It has the useful property that the numbers of 0s and 1s are conserved throughout, which in the billiard ball model means the same number of balls are output as input. This corresponds nicely to the
conservation of mass In physics and chemistry, the law of conservation of mass or principle of mass conservation states that for any system closed to all transfers of matter and energy, the mass of the system must remain constant over time, as the system's mass can ...
in physics, and helps to show that the model is not wasteful.


Truth functions with AND, OR, XOR, and NOT

The Fredkin gate can be defined using
truth function In logic, a truth function is a function that accepts truth values as input and produces a unique truth value as output. In other words: The input and output of a truth function are all truth values; a truth function will always output exactly o ...
s with
AND or AND may refer to: Logic, grammar, and computing * Conjunction (grammar), connecting two words, phrases, or clauses * Logical conjunction in mathematical logic, notated as "∧", "⋅", "&", or simple juxtaposition * Bitwise AND, a boolea ...
, OR, XOR, and NOT, as follows: : : :''C''out= ''C''in where Alternatively: : : :''C''out= ''C''in


Completeness

One way to see that the Fredkin gate is universal is to observe that it can be used to implement AND, NOT and OR: :If , then . :If , then . :If and , then .


Example

Three-bit
full adder An adder, or summer, is a digital circuit that performs addition of numbers. In many computers and other kinds of processors adders are used in the arithmetic logic units (ALUs). They are also used in other parts of the processor, where they are ...
(add with carry) using five Fredkin gates. The "g" garbage output bit is if , and if . Inputs on the left, including two constants, go through three gates to quickly determine the parity. The 0 and 1 bits swap places for each input bit that is set, resulting in parity bit on the 4th row and inverse of parity on 5th row. Then the carry row and the inverse parity row swap if the parity bit is set and swap again if one of the or input bits are set (it doesn't matter which is used) and the resulting carry output appears on the 3rd row. The and inputs are only used as gate controls so they appear unchanged in the output.


Quantum Fredkin gate

On March 25, 2016, researchers from
Griffith University Griffith University is a public research university in South East Queensland on the east coast of Australia. Formally founded in 1971, Griffith opened its doors in 1975, introducing Australia's first degrees in environmental science and Asian ...
and the
University of Queensland , mottoeng = By means of knowledge and hard work , established = , endowment = A$224.3 million , budget = A$2.1 billion , type = Public research university , chancellor = Peter Varghese , vice_chancellor = Deborah Terry , city = B ...
announced they had built a quantum Fredkin gate that uses the
quantum entanglement Quantum entanglement is the phenomenon that occurs when a group of particles are generated, interact, or share spatial proximity in a way such that the quantum state of each particle of the group cannot be described independently of the state of ...
of particles of light to swap
qubit In quantum computing, a qubit () or quantum bit is a basic unit of quantum information—the quantum version of the classic binary bit physically realized with a two-state device. A qubit is a two-state (or two-level) quantum-mechanical system, ...
s. The availability of quantum Fredkin gates may facilitate the construction of quantum computers.A quantum Fredkin gate
Raj B. Patel, Joseph Ho, Franck Ferreyrol, Timothy C. Ralph and Geoff J. Pryde, Science Advances, 25 Mar 2016, Vol. 2, no. 3, e1501531, DOI: 10.1126/sciadv.1501531


See also

* Quantum computing *
Quantum gate In quantum computing and specifically the quantum circuit model of computation, a quantum logic gate (or simply quantum gate) is a basic quantum circuit operating on a small number of qubits. They are the building blocks of quantum circuits, lik ...
**
Quantum circuit In quantum information theory, a quantum circuit is a model for quantum computation, similar to classical circuits, in which a computation is a sequence of quantum gates, measurements, initializations of qubits to known values, and possibly o ...
*
Quantum programming Quantum programming is the process of assembling sequences of instructions, called quantum circuits, that are capable of running on a quantum computer. Quantum programming languages help express quantum algorithms using high-level constructs. T ...
*
Toffoli gate In logic circuits, the Toffoli gate (also CCNOT gate), invented by Tommaso Toffoli, is a universal reversible logic gate, which means that any classical reversible circuit can be constructed from Toffoli gates. It is also known as the "control ...
, which is a ''controlled-controlled-NOT gate''.


References


Further reading

* {{cite journal, title=Conservative Logic , first1=Edward , last1=Fredkin , authorlink1=Edward Fredkin , first2=Tommaso , last2=Toffoli , authorlink2=Tommaso Toffoli , journal=
International Journal of Theoretical Physics The ''International Journal of Theoretical Physics'' is a peer-reviewed scientific journal of physics published by Springer Science+Business Media since 1968. According to the ''Journal Citation Reports'', the journal has a 2020 impact factor of ...
, volume=21 , issue=3–4 , year=1982 , pages=219–253 , doi=10.1007/BF01857727 , bibcode=1982IJTP...21..219F , s2cid=37305161 , url=http://www.digitalphilosophy.org/download_documents/ConservativeLogic.pdf , url-status=dead , archiveurl=https://web.archive.org/web/20061017232512/http://www.digitalphilosophy.org/download_documents/ConservativeLogic.pdf , archivedate=October 17, 2006 Logic gates Quantum gates Reversible computing